//    ____ _____ _      ______ ___   //
//   / __ `/ __ \ | /| / / __ `__ \  //
//  / /_/ / /_/ / |/ |/ / / / / / /  //
//  \__, / .___/|__/|__/_/ /_/ /_/   //
//    /_/_/                          //
//                                   //
//          qpwm in mind             //

#ifndef CONFIG_H
#define CONFIG_H

// mod key
// Mod4Mask - win
// Mod1Mask - alt
#define MOD Mod4Mask

// app launcher
// rofi or dmenu
const char *menu[] = {"dmenu_run", 0};

// terminal
// st by default
// write any other if necessary
const char *term[] = {"sakura", "-m", 0};
const char *browser[] = {"firefox", 0};
const char *librewolf[] = {"librewolf", 0};
const char *volmute[] = {"amixer", "set", "Master", "toggle", 0};
const char *voldown[] = {"amixer", "set", "Master", "5%-", 0};
const char *volup[] = {"amixer", "set", "Master", "5%+", 0};
const char *bridown[] = {"light", "-U", "10", 0};
const char *briup[] = {"light", "-A", "10", 0};
const char *fm[] = {"qtfm", 0};

// action bindings
static struct key keys[] = {
    {MOD, XK_q, win_kill, {0}},
    {MOD, XK_c, win_center, {0}},
    {MOD, XK_f, win_fs, {0}},

    {Mod1Mask, XK_Tab, win_next, {0}},
    {Mod1Mask | ShiftMask, XK_Tab, win_prev, {0}},

    {MOD, XK_d, run, {.com = menu}},
    {MOD, XK_Return, run, {.com = term}},
    {MOD | ShiftMask, XK_q, quit, {0}},
    {MOD | ShiftMask, XK_b, run, {.com = browser}},
    {MOD | ShiftMask, XK_i, run, {.com = librewolf}},
    {MOD, XK_F1, run, {.com = volmute}},
    {MOD, XK_F2, run, {.com = voldown}},
    {MOD, XK_F3, run, {.com = volup}},
    {MOD, XK_F5, run, {.com = bridown}},
    {MOD, XK_F6, run, {.com = briup}},
    {MOD | ShiftMask, XK_f, run, {.com = fm}},

// workspaces bindings
    {MOD, XK_1, ws_go, {.i = 1}},
    {MOD | ShiftMask, XK_1, win_to_ws, {.i = 1}},
    {MOD, XK_2, ws_go, {.i = 2}},
    {MOD | ShiftMask, XK_2, win_to_ws, {.i = 2}},
    {MOD, XK_3, ws_go, {.i = 3}},
    {MOD | ShiftMask, XK_3, win_to_ws, {.i = 3}},
    {MOD, XK_4, ws_go, {.i = 4}},
    {MOD | ShiftMask, XK_4, win_to_ws, {.i = 4}},
    {MOD, XK_5, ws_go, {.i = 5}},
    {MOD | ShiftMask, XK_5, win_to_ws, {.i = 5}},
    {MOD, XK_6, ws_go, {.i = 6}},
    {MOD | ShiftMask, XK_6, win_to_ws, {.i = 6}},
};

#endif
